package dungnt.vpoint.mathtest;

import android.app.Activity;
import android.app.Dialog;
import android.graphics.Typeface;
import android.os.Bundle;
import android.util.TypedValue;
import android.view.Window;
import android.widget.TextView;

public class InformationActivity extends Activity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_information);
        
        Dialog information_dialog = new Dialog(this);
        information_dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
        information_dialog.setContentView(R.layout.information_dialog);
        information_dialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);
        
        TextView lblTitle = (TextView)information_dialog.findViewById(R.id.lblInforTitle);
        Typeface type = Typeface.createFromAsset(getAssets(), "MYRIADPRO-REGULAR.OTF");
        lblTitle.setTypeface(type);
        lblTitle.setText("Information");
        lblTitle.setTextSize(TypedValue.COMPLEX_UNIT_PT,9);
        information_dialog.show();
    }
    
}
